package com.atguigu.gmall.impl;
import com.atguigu.gmall.UserFeignClient;
import com.atguigu.gmall.user.model.UserAddress;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
@Component //将当前类放到ioc容器
@Slf4j
public class UserDegradeFeignClient implements UserFeignClient {

    /**
     * 根据指定用户id查询用户地址
     * @param userId
     * @return
     */
    @Override
    public List<UserAddress> getUserAddressListByUserId(Long userId) {
        log.error("服务降级方法执行,,目标服务{},不可用","service-user");
        return null;
    }
}